package cn.tedu.lonnghospital.appointment.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@Validated
public class AppointmentAddNewDTO implements Serializable {
    @ApiModelProperty(value = "医生ID",required = true,dataType = "long",example = "1")
    @Range(min=1,message = "添加预约失败！医生ID必须为正整数！")
    private Long doctorId;
    @ApiModelProperty(value = "患者ID",required = true,dataType = "long",example = "1")
    @Range(min=1,message = "添加预约失败！患者ID必须为正整数！")
    private Long patientId;
    @ApiModelProperty(value = "预约时间段ID",required = true,dataType = "long",example = "1")
    @NotNull(message = "添加预约失败！必须选择预约时间段！")
    private Long appointmentTimeId;
}
